package com.teamtwoseven.todo;

public class Singleton {

	private static Singleton instance = null;
	private long userRowID = -1, itemRowID = -1;

	private Singleton() {
		// Exists only to defeat instantiation.
	}

	public static Singleton getInstance() {
		if (instance == null) {
			instance = new Singleton();
		}
		return instance;
	}

	public void setUserRowID(long rowID) {
		userRowID = rowID;
	}

	public long getUserRowID() {
		return userRowID;
	}
	
	public void setItemRowID(long rowID) {
		itemRowID = rowID;
	}

	public long getItemRowID() {
		return itemRowID;
	}
}